<?php
/**
 * Created by PhpStorm.
 * User: reshared
 * Date: 17-7-21
 * Time: 下午11:19
 */

namespace App\Repository;


use App\Models\TagModel;

class TagRepository extends BaseRepository
{
    public function __construct(TagModel $tagModel)
    {
        $this->model = $tagModel;
    }

    public function getTag($tag)
    {
        return $this->model->where('en_name', $tag)->first();
    }
}